//
//  YDNav.swift
//  YDOAProduct
//
//  Created by YDWY on 2017/5/26.
//  Copyright © 2017年 Allen. All rights reserved.
//

import UIKit

class YDNav: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
        let backItem = UIBarButtonItem()
        backItem.title = ""
        navigationItem.backBarButtonItem = backItem
        navigationBar.titleTextAttributes = [NSForegroundColorAttributeName : UIColor.ym_colorWithRGB(r: 43, g: 146, b: 154)]
       
        navigationBar.tintColor = UIColor.ym_colorWithRGB(r: 43, g: 146, b: 154)
        // Do any additional setup after loading the view.
    }

//    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
//        if self.viewControllers.count > 0 {
//            navigationBar.isHidden = false
//        }else{
//            navigationBar.isHidden = true
//        }
//        self.pushViewController(viewController, animated: true)
//    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
